<?php
use think\Config;
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo Config::get('appname');?></title>
<link href="/static/css/default.css" rel="stylesheet" type="text/css">
<link href="/static/css/style/green.css" rel="stylesheet" type="text/css" id = 'link'>
<style>
html{overflow:hidden;}
</style>
</head>

<body style="background:url(/static/images/line.gif) repeat-y 199px 0;">
<!--header start-->
<div class="header">

	<div class="headtop">
        <span class="logo" id="logo"><a href="/Index/Home/Home" target="right"><img src="/static/images/logo.png"></a></span>       
        <ul class="nav">
		{volist name="menu" id="vo" key="k"}
		
		{if condition="$k==1"}
		<li><a href="#" class="selected" data-id="{$vo.id}">{$vo.textstr}</a></li>
		{else /}
				<li><a href="#" data-id="{$vo.id}">{$vo.textstr}</a></li>
		{/if}
   
{/volist}
     
       
	   
        </ul>
        
        <div class="topright">
        
        <div class="user">
            <span><a href="#"><i class="userico iconfont">&#xe600;</i>{$username}<i class="userdown iconfont">&#xe709;</i></a></span>
            <ul class="userlist">
           
            <li><a href="/index/Home/updatepass" target="right"><i class="userxl iconfont">&#xe616;</i>修改密码</a></li>
            <li><a href="/Index/Index/exitlogin"><i class="userxl iconfont">&#xe601;</i>退出</a></li>
            </ul>
        </div>        

        <div class="skin">
        	<a href="#">设置</a>
            <ul class="skinlist">
            <li><a href="#" data-value="green" class="targetElem green"></a></li>
            <li><a href="#" data-value="darkblue" class="targetElem darkblue"></a></li>
            <li><a href="#" data-value="orange" class="targetElem orange"></a></li>
            <li><a href="#" data-value="lightgreen" class="targetElem lightgreen"></a></li>
            <li><a href="#" data-value="black" class="targetElem black"></a></li>
            <li><a href="#" data-value="darkgrey" class="targetElem darkgrey"></a></li>
            <li><a href="#" data-value="lightblue" class="targetElem lightblue"></a></li>
            <li><a href="#" data-value="red" class="targetElem red"></a></li>
            </ul>        
        </div>
        
        </div>                
    </div>
    
    
    

    
    
</div>
<!--header end-->

<!--main start-->
<div class="main">

    <!--left start-->
    <div class="left">
        <ul class="leftmenu">
		{volist name="leftmenu" id="vo" key="k"}
		
		  <li><a href="{$vo.nvaurl}?parenttitle={$vo.textstr}" target="right"><i class="iconfont">&#xe611;</i>{$vo.textstr}</a></li>
   
{/volist}
      
      
     
      
        </ul>
    </div>
    <!--left end-->
    
    <!--right start-->
    <div class="right">
    	  <div class="right">
    	
        
      
        <div class="rightdown"><iframe src="/Index/Home/Home" id="iframe" name="right" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe></div>
    </div>
    <!--right end-->

</div>
<!--main end-->

<!--footer start-->
<div class="footer">
	<span class="fleft">{$appname}</span>
    <span class="fright"><?php echo Config::get('systeminfo');?></span>
</div>
<!--footer end-->

</body>
<script type="text/javascript" src="/static/js/jquery.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script type="text/javascript" src="/static/js/skin.js"></script>
<script src="/static/js/layer/layer.js"></script>
<script>
;!function(){

$(".nav > li").click(function(){
	$(".nav > li").find("a").removeClass("selected");
	$(this).find("a").addClass("selected");
	var parentid =$(this).find("a").data("id");
	
	$.post("/Index/Menu/GetMenuList",{parentid:parentid},function(data){
	    var html="";
		for(var i=0;i<data.length;i++){
			html+='<li><a href="'+data[i].nvaurl+'?parenttitle='+data[i].textstr+'" target="right"><i class="iconfont">&#xe611;</i>'+data[i].textstr+'</a></li>';
		}
		$(".leftmenu").html(html);
	})
});




}();


function reloadiframe(){
    document.getElementById('iframe').contentWindow.location.reload(true);

}
</script>
</html>
